package com.youlv.yl.config;

/**
 * @author fenghe
 * @date 2022/1/2 9:04
 */
public class SystemConfig {

    /** 接口统一结果码*/
    public static final int R_OK = 200;
    public static final int R_FAIL = 400;
    public static final int R_NUM_ONE = 600;

    /** 正则表达式*/
    public static final String REG_PHONE = "1[3-9]{1}[0-9]{9}";

    /** 验证码的长度*/
    public static final int CODE_LEN = 6;

    /** 阿里云短信账号的key和密钥*/
    public static final String ALI_SSM_KEY = "LTAI5tKz7sP4xaaRsTuxoTjx";
    public static final String ALI_SSM_SEC = "mFCyf0QxVmB6kGAacAxdtMqmQwcRIx";

    /** 阿里云OSS账号的key和密钥*/
    public static final String ALI_OSS_KEY = "LTAI5tAckU8mLYEHbkWxhcNz";
    public static final String ALI_OSS_SEC = "2gNLE0dDtlcRssMlteJggj12sfZ33u";

    /** 阿里云短信模板*/
    /** 注册*/
    public static final String ALI_SMS_RCODE = "SMS_114390520";
    /** 登陆*/
    public static final String ALI_SMS_LCODE = "SMS_115250125";
    /** 密码找回*/
    public static final String ALI_SMS_FCODE = "SMS_181545700";

    /** 密码的密钥*/
    public static final String PASS_KEY = "+tF1xDIq7QG4c+R8YpnI0Q==";

    /** 自定义请求消息头，传输令牌*/
    public static final String REQ_HEADER_TOKEN = "yl_Token";

    /**Oss 访问地址默认3年*/
    public static final int OSS_URL_TIME = 3;

    /**百度秘钥*/
    public static final String BAIDU_APPID="a3b2af06ef9743f5ad474e5b88bd6c12";
    public static final String BAIDU_KEY="3f93af11ff0d440daa8b25b32b9ae4ee";
    public static final String BAIDU_SEC="8216fd643f7549dd90a1557c0128d402";

    /** 放行url*/
    public static final String FILTER_LOGIN = "/yl/user/";
    public static final String FILTER_SMS = "/api/sms/";
    public static final String FILTER_SWAGGER_1 = "/doc.html";
    public static final String FILTER_SWAGGER_2 = "/webjars";
    public static final String FILTER_SWAGGER_3 = "/favicon";
    public static final String FILTER_SWAGGER_4 = "/swagger";
    public static final String FILTER_SWAGGER_5 = "/v2";

    /** 账号状态*/
    public static final Integer USER_FLAG_FREEZE = 3;

    /** 账号多设备登陆状态码*/
    public static final Integer USER_LOGIN_FLAG = 800;

}
